package com.share.framework.init.shenyu;

import com.share.framework.common.config.shenyu.properties.PropertiesConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

import java.util.Properties;

public class ContextRegisterListener implements ApplicationListener<ContextRefreshedEvent>, BeanFactoryAware {
    private static final Logger LOG = LoggerFactory.getLogger(ContextRegisterListener.class);

    public ContextRegisterListener(final PropertiesConfig clientConfig) {
        final Properties props = clientConfig.getProps();
    }

    @Override
    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
    }

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        LOG.info("xxxx");
    }
}
